package com.cyq.dascma.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyq.dascma.dto.ClazzInfoDto;
import com.cyq.dascma.entity.Clazz;
import com.cyq.dascma.mapper.ClazzMapper;
import com.cyq.dascma.service.ClazzService;
import jdk.internal.dynalink.support.ClassMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 *
 * dingwen
 * 2021/4/4 15:20
 **/
@Service
public class ClazzServiceImpl extends ServiceImpl<ClazzMapper, Clazz> implements ClazzService {
    private final ClazzMapper clazzMapper;

    @Autowired
    ClazzServiceImpl(ClazzMapper clazzMapper){
        this.clazzMapper = clazzMapper;
    }
    @Override
    public List<ClazzInfoDto> findClazzInfoList(Map<String, Object> params) {
        return clazzMapper.findClazzInfoList(params);
    }
}
